<button class="btn btn-primary" type="button" onclick="addPoitem()">增加明细</button>
<button class="btn btn-info" type="button" onclick="savePomain()">保存</button>
<form id="pomainForm" action="/addPomain">
<table class="table">
    <tr>
        <td>采购单编号</td>
        <td><input type="text" id="poId"><span style="color:red;font-size: 20px;text-align: center;line-height: 28px">*</span></td>
        <td>创建时间</td>
        <td><input type="text" id="createTime"><span style="color:red;font-size: 20px;text-align: center;line-height: 28px">*</span></td>
        <td>供应商</td>
        <td><input type="text" id="venderName111"><span style="color:red;font-size: 20px;text-align: center;line-height: 28px">*</span><img src="/img/编辑.png" style="width: 20px;height: 20px" onclick="selectVender(this)" /></td>
    </tr>
    <tr class="info">
        <td>创建用户</td>
        <td><input type="text" id="scmUserName"><span style="color:red;font-size: 20px;text-align: center;line-height: 28px">*</span></td>
        <td>附加费用</td>
        <td><input type="text" id="tipFee"><span style="color:red;font-size: 20px;text-align: center;line-height: 28px">*</span></td>
        <td>采购商品总价</td>
        <td><input type="text" id="productTotal"><span style="color:red;font-size: 20px;text-align: center;line-height: 28px">*</span></td>
    </tr>
    <tr>
        <td>付款方式</td>
        <td><select id="payType">
            <option value="货到付款">货到付款</option>
            <option value="款到发货">款到发货</option>
            <option value="预付款发货">预付款发货</option>
        </select><span style="color:red;font-size: 20px;text-align: center;line-height: 28px">*</span></td>
        <td>最低预付款金额</td>
        <td><input type="text" id="prePayFee"><span style="color:red;font-size: 20px;text-align: center;line-height: 28px">*</span></td>
        <td>备注</td>
        <td><input type="text" id="remark"></td>
    </tr>
</table>
<table class="table" id="poitemtablelist">
    <tr>
        <th>序号</th>
        <th>产品编号</th>
        <th>产品名称</th>
        <th>数量单位</th>
        <th>产品数量</th>
        <th>产品体积</th>
        <th>采购单价</th>
        <th>操作</th>
    </tr>

</table>
</form>
<script>
    $(function () {
        $("#scmUserName").val(sessionStorage.getItem("name"))
        Ajax.post(
            "selectAccountByName",
            {
                name:$("#scmUserName").val()
            },
            function (result) {
                sessionStorage.setItem("account",result.data[0].account)
            })
    })
</script>